package com.foreknow.demo0930;

public class TestSingleton {
    public static void main(String[] args) {
        Singleton singleton = Singleton.getInstance();
        singleton.setName("tom");
        System.out.println(singleton.getName());

        Singleton singleton1 = Singleton.getInstance();
        System.out.println(singleton1.getName());
    }
}
